package com.situ.mall.service;

import java.util.List;

import com.situ.mall.entity.Category;
import com.situ.mall.entity.Product;
import com.situ.mall.entity.Result;

public interface IProductService {
	public List<Product> selectAll();

	public Result selectByPage(Integer page, Integer limit, Product product);

	public boolean deleteAll(Integer[] ids);

	public boolean insert(Product product);

	public List<Product> selectProductByCategoryId(Integer categoryId, Integer page, Integer limit);

	public Product selectProductById(int id);

	public List<Product> selectProductByMaybeYLike(Integer categoryId, int id);

	public List<Product> selectNew(Integer page, Integer limit);

	public List<Product> selectCheap(Integer page, Integer limit);

	public List<Product> selectTop(Integer page, Integer limit, Integer categoryId);

	public boolean deleteById(Integer id);

	public boolean update(Product product);

	public List<Product> selectProductByLikeName(String name, Integer page, Integer limit);

	
	
}
